import storage from 'good-storage'

const USER_INFO_KEY = '__userInfo__'
const LOGO_DATA_KEY = '__logoData__'
/* 个人信息 */
// 设置个人信息
export function setUserInfoStorage (userInfo) {
  storage.set(USER_INFO_KEY, userInfo)
  return userInfo
}
export function clearUserInfo () {
  storage.remove(USER_INFO_KEY)
  return []
}
export function loadUserInfo () {
  return storage.get(USER_INFO_KEY, [])
}
export function setLogoDataStorage (logoData) {
  storage.set(LOGO_DATA_KEY, logoData)
  return logoData
}
export function loadLogoData () {
  return storage.get(LOGO_DATA_KEY, [])
}
